home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gdk-pixbuf / gdk-pixbuf-transform.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  3.6 KB  |  116 lines

  1. /* GdkPixbuf library - transformations
  2.  *
  3.  * Copyright (C) 2003 The Free Software Foundation
  4.  *
  5.  * Authors: Mark Crichton <crichton@gimp.org>
  6.  *          Miguel de Icaza <miguel@gnu.org>
  7.  *          Federico Mena-Quintero <federico@gimp.org>
  8.  *          Havoc Pennington <hp@redhat.com>
  9.  *
  10.  * This library is free software; you can redistribute it and/or
  11.  * modify it under the terms of the GNU Lesser General Public
  12.  * License as published by the Free Software Foundation; either
  13.  * version 2 of the License, or (at your option) any later version.
  14.  *
  15.  * This library is distributed in the hope that it will be useful,
  16.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  18.  * Lesser General Public License for more details.
  19.  *
  20.  * You should have received a copy of the GNU Lesser General Public
  21.  * License along with this library; if not, write to the
  22.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  23.  * Boston, MA 02111-1307, USA.
  24.  */
  25.  
  26. #ifndef GDK_PIXBUF_TRANSFORM_H
  27. #define GDK_PIXBUF_TRANSFORM_H
  28.  
  29. #include <glib.h>
  30. #include <gdk-pixbuf/gdk-pixbuf-core.h>
  31.  
  32.  
  33. G_BEGIN_DECLS
  34.  
  35. /* Scaling */
  36.  
  37. /* Interpolation modes */
  38. typedef enum {
  39.     GDK_INTERP_NEAREST,
  40.     GDK_INTERP_TILES,
  41.     GDK_INTERP_BILINEAR,
  42.     GDK_INTERP_HYPER
  43. } GdkInterpType;
  44.  
  45. typedef enum {
  46.     GDK_PIXBUF_ROTATE_NONE             =   0,
  47.     GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE =  90,
  48.     GDK_PIXBUF_ROTATE_UPSIDEDOWN       = 180,
  49.     GDK_PIXBUF_ROTATE_CLOCKWISE        = 270
  50. } GdkPixbufRotation;
  51.  
  52. void gdk_pixbuf_scale           (const GdkPixbuf *src,
  53.                  GdkPixbuf       *dest,
  54.                  int              dest_x,
  55.                  int              dest_y,
  56.                  int              dest_width,
  57.                  int              dest_height,
  58.                  double           offset_x,
  59.                  double           offset_y,
  60.                  double           scale_x,
  61.                  double           scale_y,
  62.                  GdkInterpType    interp_type);
  63. void gdk_pixbuf_composite       (const GdkPixbuf *src,
  64.                  GdkPixbuf       *dest,
  65.                  int              dest_x,
  66.                  int              dest_y,
  67.                  int              dest_width,
  68.                  int              dest_height,
  69.                  double           offset_x,
  70.                  double           offset_y,
  71.                  double           scale_x,
  72.                  double           scale_y,
  73.                  GdkInterpType    interp_type,
  74.                  int              overall_alpha);
  75. void gdk_pixbuf_composite_color (const GdkPixbuf *src,
  76.                  GdkPixbuf       *dest,
  77.                  int              dest_x,
  78.                  int              dest_y,
  79.                  int              dest_width,
  80.                  int              dest_height,
  81.                  double           offset_x,
  82.                  double           offset_y,
  83.                  double           scale_x,
  84.                  double           scale_y,
  85.                  GdkInterpType    interp_type,
  86.                  int              overall_alpha,
  87.                  int              check_x,
  88.                  int              check_y,
  89.                  int              check_size,
  90.                  guint32          color1,
  91.                  guint32          color2);
  92.  
  93. GdkPixbuf *gdk_pixbuf_scale_simple           (const GdkPixbuf *src,
  94.                           int              dest_width,
  95.                           int              dest_height,
  96.                           GdkInterpType    interp_type);
  97.  
  98. GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src,
  99.                           int              dest_width,
  100.                           int              dest_height,
  101.                           GdkInterpType    interp_type,
  102.                           int              overall_alpha,
  103.                           int              check_size,
  104.                           guint32          color1,
  105.                           guint32          color2);
  106.  
  107. GdkPixbuf *gdk_pixbuf_rotate_simple          (const GdkPixbuf   *src,
  108.                               GdkPixbufRotation  angle);
  109. GdkPixbuf *gdk_pixbuf_flip                   (const GdkPixbuf   *src,
  110.                               gboolean           horizontal);
  111.                      
  112. G_END_DECLS
  113.  
  114.  
  115. #endif  /* GDK_PIXBUF_TRANSFORM_H */
  116.